home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9203.ZIP
/
OOPASM.ZIP
/
FILEDLG.ASM
< prev
next >
Wrap
Assembly Source File
|
1994-03-04
|
2KB
|
85 lines
.MODEL SMALL
INCLUDE equates.inc
INCLUDE instance.inc
INCLUDE messages.inc
INCLUDE objects.inc
UR EQU 7 ;Upper row
LC EQU 5 ;Left column
LR EQU 17 ;Lower row
RC EQU 65 ;Right column
MR EQU LR-(RowOffset+1) ;Mouse row
MC EQU LC+ColOffset+1 ;Mouse column
IF1
INCLUDE macros.mac
INCLUDE objects.mac
ENDIF
EXTRN sendMsg:NEAR
EXTRN Dialog:WORD
EXTRN Dispatch:WORD
EXTRN DlgMenu:WORD
EXTRN Dir:WORD
EXTRN EditWin:WORD
EXTRN File:WORD
EXTRN FileInfo:WORD
EXTRN Hardware:WORD
EXTRN Master:WORD
EXTRN Self:WORD
EXTRN Sound:WORD
EXTRN System:WORD
.CODE
.DATA
FileDlgText DB "Select a file to open:",0
defMenu FileDlg,<" Open File "," View Info "," Cancel ">
defMenuTbl FileDlg,\
<File,Open>,\
<FileDlg,Clear,FileInfo,Refresh>,\
<FileDlg,Clear>
defDispTbl FileDlg,\
<0,0,3,0,0,0,0,System,Reset>,\
<0,72,3,0,0,0,0,Dir,Prev>,\
<0,75,3,0,0,0,0,DlgMenu,Prev>,\
<0,77,3,0,0,0,0,DlgMenu,Next>,\
<0,80,3,0,0,0,0,Dir,Next>,\
<13,28,3,0,0,0,0,FileDlg,Select>,\
<27,1,3,0,0,0,0,FileDlg,Clear>,\
<0,68,3,0,0,0,0,FileDlg,Clear,System,Refresh,System,Read>,\
<0,Nil,1,MR,MC,MR+2,MC+36,FileDlg,Click>,\
<0,Nil,Nil,0,0,24,79,Hardware,Refresh>,\
<Nil,Nil,3,0,0,0,0,EditWin,Read>
defSlaveTbl FileDlg,<EditWin,Dir,DlgMenu>
defObj FileDlg,\
<Dispatch,Dialog,Master>,\
<Row1,1,UR,\
Col1,1,LC,\
Row2,1,LR,\
Col2,1,RC,\
Color,1,31h,\
Unused,1,Nil,\
TxtPtr,2,FileDlgText,\
InxPtr,2,0,\
MasterObj,2,Nil,\
DispTbl,2,FileDlgDispTbl,\
MenuPtr,2,FileDlgMenu,\
MenuTbl,2,FileDlgMenuTbl,\
SlaveTbl,2,FileDlgSlaveTbl,\
ActiveSlave,2,Nil>,\
<Refresh,Read,Select,Clear,Hilite,Click>
END